package com.huitone.smspfm.redis.core;

import org.springframework.data.redis.connection.RedisClusterConfiguration;
import org.springframework.data.redis.connection.RedisSentinelConfiguration;
import org.springframework.data.redis.connection.jedis.JedisConnectionFactory;

import redis.clients.jedis.JedisPoolConfig;
import redis.clients.jedis.JedisShardInfo;


/**   
* @Title MyJedisConnectionFactory.java 
* @Package com.huitone.smspfm.redis.core 
* @Description TODO(用一句话描述该文件做什么) 
* @author ybliang   
* @date 2017年10月31日 下午9:47:33 
* @version V1.0   
*/
public class MyJedisConnectionFactory extends JedisConnectionFactory {

	public MyJedisConnectionFactory() {
		super();
	}

	public MyJedisConnectionFactory(JedisPoolConfig poolConfig) {
		super(poolConfig);
	}

	public MyJedisConnectionFactory(JedisShardInfo shardInfo) {
		super(shardInfo);
	}

	public MyJedisConnectionFactory(RedisClusterConfiguration clusterConfig, MyJedisPoolConfig poolConfig) {
		super(clusterConfig, (JedisPoolConfig)poolConfig);
	}

	public MyJedisConnectionFactory(RedisClusterConfiguration clusterConfig) {
		super(clusterConfig);
	}

	public MyJedisConnectionFactory(RedisSentinelConfiguration sentinelConfig, MyJedisPoolConfig poolConfig) {
		super(sentinelConfig, (JedisPoolConfig)poolConfig);
		this.setTimeout(poolConfig.getTimeout());
	}

	public MyJedisConnectionFactory(RedisSentinelConfiguration sentinelConfig) {
		super(sentinelConfig);
	}
}
